package com.sakura.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sakura.dto.InsertOrUpdateManagerDTO;
import com.sakura.dto.ManagerDTO;
import com.sakura.dto.ManagerLoginDTO;
import com.sakura.dto.QueryManagerDTO;
import com.sakura.entity.Manager;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sakura.util.R;
import com.sakura.vo.ManagerVO;

/**
* @author Sakura
* @description 针对表【manager】的数据库操作Service
* @createDate 2023-11-22 15:49:03
*/
public interface ManagerService extends IService<Manager> {

    Page<ManagerVO> getPage(QueryManagerDTO queryManagerDTO);

    R login(ManagerLoginDTO loginDTO);

    R register(InsertOrUpdateManagerDTO registerDTO);

    R logout(ManagerDTO managerDTO);

    R getCaptcha(String phone);
}
